- required = @current_community.listing_location_required?
- title = t(".location") + (required ? "*" : "")
- required_class = (required ? "required" : "")
- origin_loc = @listing.origin_loc

= form.label :origin, title, :class => "input"
- if @current_community.fuzzy_location?
  - info_text = t(".the_exact_location")
  = render partial: "layouts/info_text", locals: { text:  info_text}
= form.text_field :origin, :class => "text_field #{required_class}", :onkeyup => "timed_input(this)", :value => (origin_loc ? origin_loc.address : nil)
= form.fields_for :origin_loc, include_id: false do |loc|
  = loc.hidden_field :address, :value => origin_loc.address
  = loc.hidden_field :google_address, :value => origin_loc.google_address
  = loc.hidden_field :latitude, :value => origin_loc.latitude
  = loc.hidden_field :longitude, :value => origin_loc.longitude
